package com.feinno.urcs.group.fxdb;

import com.feinno.superpojo.SuperPojo;
import com.feinno.superpojo.annotation.Childs;
import com.feinno.superpojo.annotation.Entity;
import org.helium.framework.entitys.KeyValueNode;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Lei Gao on 7/13/15.
 *
 * <databases>
 *     <database key="1" value="GRPDB.1"/>
 *     <database key="2" value="GRPDB.2"/>
 * </databases>
 */
@Entity(name = "databases")
public class PooledDatabaseConfiguration extends SuperPojo {
	@Childs(id = 1, parent = "", child = "database")
	private List<KeyValueNode> databases = new ArrayList<>();

	public List<KeyValueNode> getDatabases() {
		return databases;
	}

	public void setDatabases(List<KeyValueNode> databases) {
		this.databases = databases;
	}
}
